<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String baseInfoJson= (String)request.getAttribute("baseInfoJson");
String antibacterialDrugInfoJson= (String)request.getAttribute("antibacterialDrugInfoJson");

%>
<link rel="stylesheet" href="${basePath}assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}assets/js/medical_record/edit_antibacterial_drug_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }"/>
<form action="${basePath}medical_record/edit_home_page_antibacterial_drug" style="width: 100%"
	method="post">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" id="antibacterialDrugRecordCount" value="0"/>
	<table width="100%" cellspacing="0" border="0" cellpadding="0">
		<tbody>
			<tr>
				<td colspan="9" style="border:none;">
					<div style="float:right">
						<input type="button" value="删除" class="btn" onclick="deleteAntibacterialDrug()"> <input
							type="button" value="新增" class="btn" onclick="addAntibacterialDrugRecord()"> <input
							type="submit" value="保存" class="btn"> &nbsp;
					</div></td>
			</tr>
		</tbody>
	</table>
	<div class="bg_danlanColor clearfix" style="color:#333">
		<ul class="margin0 clearfix" id="antibacterial_drug_ul">
		</ul>
	</div>
	
	<div class="content" id="antibacterialDrugRecords">
		

	</div>
	
</form>
<div hidden="true">
	<ul id="template_antibacterial_drug_ul">
		<li data-index="0">记录1</li>
	</ul>
	
	<div class="layout" id="templateAntibacterialDrugRecord">
		<table width="100%" cellspacing="0" cellpadding="0">
			<tbody>
				<tr>
					<td align="left" class="tdLabel_7">抗菌用药目的</td>
					<td align="left" class="tdLabel_8">
						<select name="antibacterialDrugRecords[0].antibacterialDrugPurposeCode" class="antibacterialDrugPurposeSelect" data-select="selectCodeAndName">
							
						</select>
						<input type="hidden" name="antibacterialDrugRecords[0].antibacterialDrugPurposeName"/>
					</td>
					<td align="left" class="tdLabel_7">抗菌用药方案</td>
					<td align="left" class="tdLabel_8">
						<select name="antibacterialDrugRecords[0].antibacterialDrugRegimenCode" class="antibacterialDrugRegimenSelect" data-select="selectCodeAndName">
							
						</select>
						<input type="hidden" name="antibacterialDrugRecords[0].antibacterialDrugRegimenName"/>
					</td>
					<td align="left" class="tdLabel_7">病原体</td>
					<td align="left" class="tdLabel_8">
						<select name="antibacterialDrugRecords[0].pathogenCode" class="pathogenSelect" data-select="selectCodeAndName">
							
						</select>
						<input type="hidden" name="antibacterialDrugRecords[0].pathogenName"/>
					</td>
				</tr>
				<tr>
					<td align="left" class="tdLabel_7">开始用药时间</td>
					<td align="left" class="tdLabel_8">
						<input type="text"
						name="antibacterialDrugRecords[0].drugStartDateTime"
						onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</td>
					<td align="left" class="tdLabel_7">结束用药时间</td>
					<td align="left" class="tdLabel_8">
						<input type="text"
						name="antibacterialDrugRecords[0].drugEndDateTime"
						onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</td>
					<td align="left" class="tdLabel_7">消耗量</td>
					<td align="left" class="tdLabel_8">
						<input type="text" name="antibacterialDrugRecords[0].drugConsumption">
					</td>
				</tr>
				<tr>
					<td align="left" width="17%" class="tdLabel_7">出血量≥1500毫升追加1剂</td>
					<td align="left" width="18%" class="tdLabel_8">
					<input type="radio" data-radio="radioCodeAndName"
						class="radio_cl" name="antibacterialDrugRecords[0].hemorrhageAddDrug1Code" value="1">是
						&nbsp;&nbsp;
					<input type="radio" data-radio="radioCodeAndName"
						class="radio_cl" name="antibacterialDrugRecords[0].hemorrhageAddDrug1Code"
						value="0">否
						<input type="hidden" name="antibacterialDrugRecords[0].hemorrhageAddDrug1Name"/>
					</td>
					<td align="left" width="18%" class="tdLabel_7">手术时间超过3小时追加1剂</td>
					<td align="left" width="16%" class="tdLabel_8"><input type="radio" data-radio="radioCodeAndName"
						class="radio_cl" name="antibacterialDrugRecords[0].operateAddDrug1Code"
						value="1">是&nbsp;&nbsp;
						<input type="radio" data-radio="radioCodeAndName"
						class="radio_cl" name="antibacterialDrugRecords[0].operateAddDrug1Code"
						value="0">否
						<input type="hidden" name="antibacterialDrugRecords[0].operateAddDrug1Name"/>
					</td>
					<td align="left" width="8%" class="tdLabel_7">医源性检测</td>
					<td align="left" width="18%" class="tdLabel_8"><input type="radio" data-radio="radioCodeAndName"
						class="radio_cl" name="antibacterialDrugRecords[0].iatrogenicCheckCode" value="1">是&nbsp;&nbsp;<input
						type="radio" class="radio_cl" data-radio="radioCodeAndName"
						name="antibacterialDrugRecords[0].iatrogenicCheckCode" value="0">否
						<input type="hidden" name="antibacterialDrugRecords[0].iatrogenicCheckName"/>
					</td>
				</tr>
				<tr class="dark2">
					<td class="tdLabel_7">用药分类</td>
					<td class="tdLabel_8">
						<select name="antibacterialDrugRecords[0].antibacterialDrugClassificatoryCode" class="antibacterialDrugClassificatorySelect" data-select="selectCodeAndName">
							
						</select>
						<input type="hidden" name="antibacterialDrugRecords[0].antibacterialDrugClassificatoryName"/>
					</td>
					<td class="tdLabel_7">病原学检测标本</td>
					<td colspan="3" class="tdLabel_8">
						<select name="antibacterialDrugRecords[0].pathogenyCheckSpecimenCode" class="pathogenyCheckSpecimenSelect" data-select="selectCodeAndName">
							
						</select>
						<input type="hidden" name="antibacterialDrugRecords[0].pathogenyCheckSpecimenName"/>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
<script>
	$(function(){
		var baseInfoJson= <%=baseInfoJson%>;
		//console.log(baseInfoJson);
		var antibacterialDrugInfoJson= <%=antibacterialDrugInfoJson%>;
		//console.log(antibacterialDrugInfoJson);
		
		initPage(baseInfoJson,antibacterialDrugInfoJson);
	})
</script>